package edu.gyc.appshiro.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.gyc.appshiro.model.Role;
import edu.gyc.appshiro.model.User;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;


@Component
public interface RoleDao extends BaseMapper<Role> {
    Set<Role> findRolesByUserId(Integer id);

    List<User> getUsersByRoleId(Integer rid);
}
